<%@include file="/libs/foundation/global.jsp"%>
<% 
String tpl= properties.get("jcr:defaultType","");
String desc=properties.get("jcr:description","");
if(desc.length()>0){
    desc=desc.substring(3,desc.length());
    desc=desc.substring(0,desc.length()-5);
}

if(tpl==""){ %> 
<p>Choose a template</p>
<% } 

if(tpl.equals("news")){ %>       
<div  class="insideContentBox firstBox">
    <p class="blackText"><%= properties.get("jcr:title","") %> </p>
    <p>
        <span class="blackText"><%= properties.get("jcr:date","") %> - </span> 
         <%= desc%>
    </p>
    <a class="readLink" href="<%= properties.get("jcr:linknews","") %>">Read More</a>
</div>
<% } 
if(tpl.equals("home")){ %>
    <h2><%= properties.get("jcr:title","") %></h2>
    <p>
         <%= desc%>: <a href="<%= properties.get("jcr:linknews","") %>">Learn More</a></p>
<% } 
if(tpl.equals("our")){ %>
    <p class="blackTextName"><%= properties.get("jcr:title","") %><br>
    <%= properties.get("jcr:date","") %></p>
    <p><%= desc%></p>
    <a href="<%= properties.get("jcr:linknews","") %>" class="readLink">Read More</a>
<% } %>

